import Vue from 'vue'
import Router from 'vue-router'
import login from '../components/login.vue'
// import reg from '../components/reg.vue'
import tablelist from '../components/tablelist.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      component: login
    },
    // {
    //   path:'/reg',
    //   component:reg
    // },
    {
      path: '/tablelist',
      component: tablelist
    }
  ],
  linkActiveClass: 'mystyle'
})
